package com.neuedu.hw20190214;

public class ColaEmployee {
    //成员方法
    private String emName;
    private int birthMonth;

    //行为方法

    public int getSalary(int month)
    {
        if(birthMonth==month)
        {
            return 100;
        }
        return 0;
    }



    //无参和有参的构造方法
    public ColaEmployee()
    {

    }
    public ColaEmployee(String emName, int birthMonth) {
        this.emName = emName;
        this.birthMonth = birthMonth;
    }

    //类ColaEmployee的getter和setter方法
    public String getEmName() {
        return emName;
    }

    public void setEmName(String emName) {
        this.emName = emName;
    }

    public int getBirthMonth() {
        return birthMonth;
    }

    public void setBirthMonth(int birthMonth) {
        this.birthMonth = birthMonth;
    }
}
